package com.aigc.sclassroom.service;

import com.aigc.sclassroom.pojo.*;

import java.util.List;

public interface HomeworkService {
    List<Homework> selectAll(Long courseManageId);

    String[] selectQuestion(Long homeworkId);
    Long[] selectId(Long homeworkId);

    String[] selectAnswer(Long homeworkId);
    int[] selectScoreSet(Long homeworkId);

    void addHomework(Homework homework);

    void addQuestion(String[] question, String[] answer,int[] scoreSet,Long homeworkId);

    List<HomeworkResult> selectResult(Long homeworkId);


    List<StuAnswer> selectStuAnswer(Long homeworkId,Long userId);

    void updateScore(StuAnswer stuAnswer);

    int selectSum(Long courseManageId);

    int selectSubmitCount(Long courseManageId);

    void submitAnswer(List<Answer> answer);

    List<Long> selectStuAnswerId(Long userId, Long homeworkId);

    Integer selectScore(Long studentAnswerId);

    AverageCount selectAverage(Long homeworkId);

    void updateStatusToExpired();

    Integer selectTotalScore(Long homeworkId, Long userId);
}